package com.my.bbs.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 86187
 */
@Data
@TableName("role")
@NoArgsConstructor
@AllArgsConstructor
public class MyRole {

    @TableId
    private Long id;

    @TableField("name")
    private String name;

    @TableField("code")
    private String code;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableLogic
    private Byte dr;
}
